<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>{% if object %}更新作者{% else %}添加新作者{% endif %}</title>
</head>
<body>
    <h2>{% if object %}更新作者{% else %}添加新作者{% endif %}</h2>
    <form method="post">
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit">提交</button>
    </form>
    <a href="{% url 'author-list' %}">返回作者列表</a>
</body>
</html> 